package com.wind;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/index")
@Api(value = "测试")
public class IndexController {

    /**
     * api文档访问地址，http://localhost:9999/swagger-ui.html#/
     * 接口访问地址：http://localhost:9999/index/list
     */
    @RequestMapping(value="/list")
    @ApiOperation(value="列表")
    @ResponseBody
    public void list() {
        System.out.println("test list 哈哈哈");
    }
}
